package com.lechuang.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class SaveUserConsigneeDto implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer DEFAULT_ADDR = 1;//1是默认地址
    /**
     * 主键id
     */
    @Schema(description= "主键id")
    private Long id;
    /**
     * 用户id
     */
    @Schema(description= "用户id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long userId;

    /**
     * 收货人姓名
     */
    @Schema(description= "收货人姓名",requiredMode = Schema.RequiredMode.REQUIRED)
    private String consigneeName;

    /**
     * 收货人电话
     */
    @Schema(description= "收货人电话",requiredMode = Schema.RequiredMode.REQUIRED)
    private String consigneePhone;

    /**
     * 收货人详细地址
     */
    @Schema(description= "收货人详细地址",requiredMode = Schema.RequiredMode.REQUIRED)
    private String consigneeAddressDetail;

    /**
     * 省id
     */
    @Schema(description= "省id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long provinceId;

    /**
     * 省名称
     */
    @Schema(description= "省名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String provinceName;

    /**
     * 市id
     */
    @Schema(description= "市id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long cityId;

    /**
     * 市id
     */
    @Schema(description= "市名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String cityName;


    /**
     * 区id
     */
    @Schema(description= "区id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long areaId;

    /**
     * 区id
     */
    @Schema(description= "区名称",requiredMode = Schema.RequiredMode.REQUIRED)
    private String areaName;

    /**
     * 是否默认地址：1 是 2否
     */
    @Schema(description= "是否默认地址：1 是 2否",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer defaultFlag;


}
